import request from '@/utils/request'

// 查询体检预约维护列表
export function listBookingSlots(query) {
  return request({
    url: '/medical/BookingSlots/list',
    method: 'get',
    params: query
  })
}

// 查询体检预约维护详细
export function getBookingSlots(id) {
  return request({
    url: '/medical/BookingSlots/' + id,
    method: 'get'
  })
}

// 新增体检预约维护
export function addBookingSlots(data) {
  return request({
    url: '/medical/BookingSlots',
    method: 'post',
    data: data
  })
}

// 修改体检预约维护
export function updateBookingSlots(data) {
  return request({
    url: '/medical/BookingSlots',
    method: 'put',
    data: data
  })
}

// 删除体检预约维护
export function delBookingSlots(id) {
  return request({
    url: '/medical/BookingSlots/' + id,
    method: 'delete'
  })
}
